<template>
	<view>
		<view class="pagesTop">
			<view style="padding: 80rpx 0;">
				<u-steps :current="current" dot inactiveColor="#ffffff" activeColor="#59D441">
					<u-steps-item title="填写订单"></u-steps-item>
					<u-steps-item title="在线支付"></u-steps-item>
					<u-steps-item title="陪诊服务"></u-steps-item>
					<u-steps-item title="服务完成"></u-steps-item>
				</u-steps>
			</view>
			<view class="addForm">
				<view class="formBox padingno">
					<view>
						<u-cell-group title="订单信息">
							<u-cell title="服务类型" :value="FormData.caseName"></u-cell>
							<u-cell title="订单编号" :value="FormData.caseId"></u-cell>
							<u-cell title="下单时间" :border="false" :value="FormData.placesTime"></u-cell>
						</u-cell-group>
					</view>
				</view>
				<view class="formBox padingno">
					<view>
						<u-cell-group title="预约信息">
							<u-cell title="医院名称" :value="FormData.hosName"></u-cell>
							<u-cell title="期望就诊时间" :value="FormData.seasTime"></u-cell>
							<u-cell title="就诊人" :value="FormData.name"></u-cell>
							<u-cell title="就诊人性别" :value="FormData.sex"></u-cell>
							<u-cell title="就诊人手机号" :value="FormData.phoneNumber"></u-cell>
							<u-cell title="就诊人身份证号" :value="FormData.idCard"></u-cell>
							<u-cell title="就诊人关系" :value="FormData.gx"></u-cell>
							<u-cell title="联系人" :value="FormData.contact"></u-cell>
							<u-cell title="联系人电话" :value="FormData.contactNumber"></u-cell>
							<u-cell title="服务者性别" :border="false" :value="FormData.pesSex"></u-cell>
						</u-cell-group>
					</view>
				</view>
			</view>
		</view>
		<view class="addfoot">
			<view class="payNavs">
				<view class="payTitle">支付信息</view>
				<view class="payMsg">
					<text>支付金额</text>
					<text class="menyNum">¥288.00</text>
				</view>
			</view>
			<view class="countLest">
				<u-count-down :time=" 60 * 60 * 1000" format="HH:mm:ss" @change="onChange">
					<view class="contentNeng">
						<text>请在</text>
						<text class="countDown">
							<text>{{ timeData.hours+'0'}}</text>
							<text>:</text>
							<text>{{ timeData.minutes >=10?timeData.minutes:'0'+timeData.minutes}}</text>
							<text>:</text>
							<text>{{ timeData.seconds >=10?timeData.seconds:'0'+timeData.seconds}}</text>
						</text>
						<text>内完成支付，超时订单自动取消</text>
					</view>
				</u-count-down>
			</view>
			<view class="addBtn" @click="submit">立即支付</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				timeData: {},
				current: 1,
				FormData: {
					caseName: '一对一专业陪诊（半天陪诊）',
					caseId: '20241122091905418539',
					placesTime: '2024-11-22 09:19:05',
					hosName: '中南大学湘雅附属第一医院',
					seasTime: '2024-11-22 10:30',
					name: '丰子恺',
					sex: '男',
					phoneNumber: '18693587716',
					idCard: '430121199508161134',
					gx: '本人',
					contact: '丰福贵',
					contactNumber: '13677568916',
					pesSex: '不限'
				}
			}
		},
		methods: {
			onChange(e) {
				this.timeData = e
			}
		}
	}
</script>

<style lang="scss">
	body {
		background-color: $uni-bg-color-grey;
	}

	.pagesTop {
		width: 100%;
		height: 300rpx;
		background: linear-gradient(to left, $uni-aicloud, $uni-aicloud-gradation);
		font-size: 28rpx;
		color: #ffffff;
	}

	.u-steps-item__wrapper.data-v-3ae6176e {
		background-color: hsla(0, 0%, 100%, 0) !important;
		/* 完全透明 */
	}

	.u-text__value--main.data-v-50004b49,
	.u-text__value--content.data-v-50004b49 {
		color: #ffffff !important;
	}

	.u-cell__body.data-v-1c4434ae {
		padding: 20rpx 0 !important;
	}

	.u-cell-group__title.data-v-7369b029 {
		padding: 32rpx 0 16rpx !important;
	}

	.payNavs {
		margin: 0 50rpx;
		border-bottom: 1px #EAEBEC solid;
	}

	.payTitle {
		height: 70rpx;
		line-height: 70rpx;
		font-weight: bold;
		font-size: 30rpx;
	}

	.payMsg {
		height: 60rpx;
		line-height: 60rpx;
		font-size: 26rpx;
	}

	.payMsg>text {
		display: inline-block;
		width: 50%;
	}

	.menyNum {
		text-align: right;
		font-weight: bold;
		color: #F9865A;
		font-size: 32rpx;
	}

	.countLest {
		padding: 20rpx 20rpx 0 50rpx;
	}

	.contentNeng {
		display: inline-block;
		font-size: 26rpx;
	}

	.countDown {
		margin: 0 10rpx;
		color: #F9865A;
	}

	.addForm {
		padding: 20rpx;
		padding-bottom: 330rpx;
	}

	.formBox {
		background: #ffffff;
		border-radius: 10rpx;
		overflow: hidden;
		margin-bottom: 20rpx;
		box-shadow: 3rpx 3rpx 6rpx 0 #D3D0D0;
		padding: 0 30rpx;
	}

	.padingno {
		padding: 0 30rpx;
	}

	.addfoot {
		position: fixed;
		bottom: 0;
		width: 100%;
		box-shadow: 0 -5rpx 10rpx #D3D0D0;
		background: #ffffff;
	}

	.addBtn {
		width: 90%;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		background: linear-gradient(to left, $uni-aicloud, $uni-aicloud-gradation);
		color: #ffffff;
		font-size: 28rpx;
		border-radius: 80rpx;
		margin: 30rpx auto;

	}
</style>